<?php
/**
 * @author Voislav Jovanovic <voislavj@gmail.com>
 * main entry point for the framework
 */

class Config {

	public static function load($path, $section=false, $name=false) {
		$ret = false;
		
		if(file_exists($path)) {
			$ret = parse_ini_file($path, true);
			
			if($section) {
				$ret = $ret[$section];
			}
			
			if($name) {
				$ret = $ret[$name];
			}
		}
		
		return $ret;
	}

}

?>